<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset();?>
	<?php header('Content-Type: text/html; charset=utf-8'); ?>
	<title>
		<?php __('CLEO DESIGN'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('cleo.ico');
		echo $this->Html->css('styles.css');
		
		//echo $scripts_for_layout;
	?>
	
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url(<?php echo $this->webroot; ?>img/back.jpg);
}
-->
</style>
<script language="JavaScript">
var U=0;
var aux=0;

var tvl=setInterval("A()",3000); 
function A()
{

switch (aux) {
case 0:
	var url="<?php echo $this->webroot; ?>img/img0"+U+".jpg";
	document.getElementById('img').src=url;

	break
case 1:
	var url2="<?php echo $this->webroot; ?>img/im0"+U+".jpg";
	document.getElementById('im').src=url2;

	break
case 2:
	var url3="<?php echo $this->webroot; ?>img/i0"+U+".jpg";
	document.getElementById('i').src=url3;

	break
case 3:
	var url4="<?php echo $this->webroot; ?>img/ig0"+U+".jpg";
	document.getElementById('ig').src=url4;
	U++;

	break
}
if (aux==3) {
	aux=0;
}
else {
	aux++;
}

/*
var url="/cleodesign/img/img0"+U+".jpg";
var url2="/cleodesign/img/im0"+U+".jpg";
var url3="/cleodesign/img/i0"+U+".jpg";
var url4="/cleodesign/img/ig0"+U+".jpg";

document.getElementById('img').src=url;
U++;
document.getElementById('im').src=url2;
document.getElementById('i').src=url3;
document.getElementById('ig').src=url4;
*/
if(U>1) {U=0;}
}
</script>


</head>

<body>

<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="30" align="right" valign="top"><table width="30" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30" height="661" background="<?php echo $this->webroot; ?>img/sombra_iz_arriba.jpg">&nbsp;</td>
      </tr>
      <tr>
        <td height="10" background="<?php echo $this->webroot; ?>img/sombra_iz_medio.jpg">&nbsp;</td>
      </tr>
      <tr>
        <td height="360" background="<?php echo $this->webroot; ?>img/sombra_iz_abajo.jpg">&nbsp;</td>
      </tr>
    </table></td>
    <td valign="top"><table width="934" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><?php echo  $this->Html->link(
    							  $this->Html->image('cleo_design_header_fra.jpg', array("alt" => "CLEO DESIGN", "width" => "934", "height" => "248", "border" => "0")),
    							  array('controller' => 'inicio', 'action' => 'index') , array('escape' => false));?>
       </td>
      </tr>
    </table>
      <table width="934" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="800" valign="top" bgcolor="#FFFFFF"><table width="934" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="268" align="center" valign="top"><table width="250" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="60" align="left" bgcolor="#c02a4a" class="menublanco">&bull; 
                  <?php echo  $this->Html->link(
    							  'Exclusivités',
    							  array('controller' => 'exclusividades', 'action' => 'index') , array('escape' => false, 'class' => 'menublanco'));?>
                  <!--<a href="exclusividades.html" class="menublanco">Exclusividades</a>  -->
                  
                  </td>
                </tr>
                <tr>
                  <td align="left" class="menunaranja"> &bull;<?php echo $this->Html->link('Cuisine',
                  array('controller' => 'cocinas', 'action' => 'index'),
                  array('class' => "menunaranja",'target' => "_self" ));?>
                  </td>
                </tr>
                <tr>
                  <td height="1" align="left" bgcolor="#d5d5d5" ></td>
                </tr>
                <tr>
                  <td align="left" class="menunaranja"> &bull;<?php echo $this->Html->link('Salle à manger',
                  array('controller' => 'comedores', 'action' => 'index'),
                  array('class' => "menunaranja",'target' => "_self" ));?>
                  </td>
                </tr>
                <tr>
                  <td height="1" align="left" bgcolor="#d5d5d5" ></td>
                </tr>
                <tr>
                  <td align="left" class="menunaranja">&bull;<?php echo $this->Html->link('Bureau',
                  array('controller' => 'escritorios', 'action' => 'index'),
                  array('class' => "menunaranja",'target' => "_self" ));?>
                  <!-- <a href="escritorio.html" target="_self" class="menunaranja">&bull; Escritorio</a> -->
                  
                  </td>
                </tr>
                <tr>
                  <td height="1" align="left" bgcolor="#d5d5d5" ></td>
                </tr>
                <tr>
                  <td align="left" class="menunaranja">&bull;<?php echo $this->Html->link('Salle de Bain',
                 		 array('controller' => 'banos', 'action' => 'index'),
                	 	 array('class' => "menunaranja",'target' => "_self" ));?>
                	  <!-- <a href="banio.html" target="_self" class="menunaranja"> Ba&ntilde;o</a> -->
                  </td>
                </tr>
                <tr>
                  <td height="1" align="left" bgcolor="#d5d5d5" ></td>
                </tr>
                <tr>
                  <td align="left" class="menugris">&nbsp;</td>
                </tr>
                <tr>
                  <td height="1" align="left" bgcolor="#d5d5d5" ></td>
                </tr>
                <tr>
                  <td align="left" class="menugris">&bull;<?php echo $this->Html->link('Qui sommes nous',
                 		 array('controller' => 'quienessomos', 'action' => 'index'),
                	 	 array('class' => "menugris",'target' => "_self" ));?>
                  
                <!-- <a href="quienes_somos.html" target="_self" class="menugris">&bull; Qui&eacute;nes Somos</a>  -->  
                  </td>
                </tr>
                <tr>
                  <td height="1" align="left" bgcolor="#d5d5d5" ></td>
                </tr>
                <tr>
                  <td align="left" class="menugris">&bull;<?php echo $this->Html->link('Contactez-nous',
                 		 array('controller' => 'contactos', 'action' => 'index'),
                	 	 array('class' => "menugris",'target' => "_self" ));?>
                  <!-- <a href="contacto.html" target="_self" class="menugris">&bull; Cont&aacute;ctenos</a> -->
                  
                  </td>
                </tr>
                <tr>
                  <td height="1" align="left" bgcolor="#d5d5d5" ></td>
                </tr>
                <tr>
                </tr>
              </table>
               
                <table width="248" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="40"></td>
                  </tr>
                </table>
                <?php
                	                	
                if (!empty($destacado)){ // entonces hay al menos un producto destacado
                		
						echo "<table width=\"244\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
                  <tr>
                    <td background=\"$this->webroot;img/gris.gif\"><table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">
                      <tr>
                        <td><table width=\"242\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
                          <tr>
                            <td width=\"128\" height=\"60\" align=\"left\" bgcolor=\"#ff6f01\" class=\"menublanco\">Les remarquables</td>
                          </tr>
                          <tr>
                            <td align=\"center\" valign=\"middle\"> <br />";
					//show link image of featured product. 
					$nombre_archivo = $directorio_destacado.$destacado[$destacado_tipo]['id'].".jpg";
					echo  $this->Html->link(
    							  $this->Html->image($nombre_archivo, array("alt" => "INDIVIDUALES", "width" => "242", "height" => "250", "border" => "0")),
    							  array('controller' => $destacado_controller, 'action' => 'view', $destacado[$destacado_tipo]['id']) ,array('escape' => false));
					
                	
                	echo "</td>
                          </tr>
                          <tr>
                            <td height=\"1\" align=\"left\"></td>
                          </tr>
                          <tr>
                            <td align=\"left\" bgcolor=\"#FFFFFF\" class=\"textocastellano\">&nbsp;</td>
                          </tr>";
                          if (sizeof($destacado[$destacado_tipo]['texto_destacado']))//si hay texto para el producto destacado. 	
                          {
                          	echo "<tr>
                            <td align=\"left\" bgcolor=\"#FFFFFF\" class=\"textocastellano\"><div align=\"center\"><span class=\"menunaranja\">Offre de lancement:</span><br />
                                <br />";
                          		echo $destacado[$destacado_tipo]['texto_destacado'];
                          		echo "<br />
                              <br />
                              <br />
                              <br />
                            </div></td>
                          </tr>";
                          	
                          }
                          //print_r($destacados_cocina);
                          //echo $destacados_cocina[$random]['Cocina']['texto_destacado'];
                          echo "<tr>
                            <td align=\"left\" bgcolor=\"#FFFFFF\" class=\"textocastellano\">&nbsp;</td>
                          </tr>
                          <tr>
                            <td height=\"1\" align=\"left\"></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>";
                	}
                         
                ?>
                </td>
              <td valign="top"><table width="666" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><img src="<?php echo $this->webroot; ?>img/banner_escritorio_fra.jpg" alt="CLEO DESIGN EXCLUSIVIDAD" width="666" height="110" border="0" /></td>
                </tr>
              </table>
                 <table width="666" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td>&nbsp;</td>
                    <td width="633" height="30">&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td height="30" class="textocastellano">Simplement posé sur votre bureau, sous votre souris ou accompagné d’autres produits Cléo Design, ces articles embelliront votre espace de travail.
Les cuirs écologiques combinés entre eux ainsi que l’association de couleurs de cette ligne de produits offre une touche d’élégance et d’exclusivité qui vous enchantera.
N’hésitez pas à vous procurer le jeu complet pour habiller votre bureau du « Total look » parisien qui vous plait à tout instant.</td>
                      <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td height="30">&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <?php 
                  		$i=0;
                  		$bandera_=1;
                  		foreach ($escritorios as $articulo) {
                  			//print_r($articulo);
                  			if ($i%4 == 0){ // crear nueva fila
                  				if ($bandera_){//solamente abre la fila para incluir 4 imagenes
                  					echo "<tr><td width=\"15\">&nbsp;</td><td height=\"30\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";	
                  					$bandera_= 0;
                  				}
                  				else{//cerrar la fila y abrir otra
                  					//cierra la fila actual
                  					echo "</table></td><td width=\"18\">&nbsp;</td></tr><tr><td>&nbsp;</td><td height=\"30\">&nbsp;</td><td>&nbsp;</td></tr>";
                  					//abre la siguiente fila
                  					echo "<tr><td width=\"15\">&nbsp;</td><td height=\"30\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";	
                  				}
                  				
                  			}
                  			$nombre_archivo = "escritorio/".$articulo['Escritorio']['id'].".jpg";
                  			echo "<td><table border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
                              <tr>
                                <td background=\"$this->webroot;img/gris.gif\"><table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">
                                    <tr>
                                      <td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
                                          <tr>
                                            <td align=\"center\" valign=\"middle\">";
                  			echo  $this->Html->link(
    							  $this->Html->image($nombre_archivo, array("alt" => "INDIVIDUALES", "width" => "135", "height" => "135", "border" => "0")),
    							  array('controller' => 'escritorios', 'action' => 'view', $articulo['Escritorio']['id']) ,array('escape' => false));
    							  
                  			 echo "</td>
                                          </tr>
                                          <tr>
                                            <td height=\"1\" align=\"left\"></td>
                                          </tr>
                                          <tr>
                                            <td height=\"1\" align=\"left\"></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                </table></td>
                              </tr>
                          </table></td>
                          <td width=\"15\">&nbsp;</td>";
                  				
                  			
                  			$i++;
						
                  		}
                  		//cierra la tabla
                  		echo "</table></td><td width=\"18\">&nbsp;</td></tr>";
                  
                 ?>
                  <tr>
                    <td>&nbsp;</td>
                    <td height="30">&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td height="30">&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <table width="934" height="66" border="0" align="left" cellspacing="1" bgcolor="#FFFFFF">
  <tr>
    <td height="10" colspan="2" align="right" valign="middle" bgcolor="#FFFFFF" class="textocastellano">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="right" valign="middle" bgcolor="#FFFFFF" class="textocastellano"><img src="<?php echo $this->webroot; ?>img/redes.jpg" width="135" height="43" border="0" usemap="#Map" /></td>
  </tr>
  <tr>
    <td height="20" colspan="2" align="center" valign="middle" bgcolor="#FFFFFF" class="textocastellano">Cléo Design ® Tous droits réservés</td>
  </tr>
  <tr>
    <td height="40" colspan="2" align="center" valign="middle" bgcolor="#FFFFFF" class="menupie" >
    <!-- <a href="cocina.html" target="_self" class="menu_arriba">Cocina</a> --> <?php echo $this->Html->link('Cuisine',
                  array('controller' => 'cocinas', 'action' => 'index'),
                  array('class' => "menu_arriba",'target' => "_self" ));?> | 
    <!-- <a href="comedor.html" target="_self" class="menu_arriba"> Comedor </a> --> <?php echo $this->Html->link('Salle à manger',
                  array('controller' => 'comedores', 'action' => 'index'),
                  array('class' => "menu_arriba",'target' => "_self" ));?> | 
    <!-- <a href="escritorio.html" target="_self" class="menu_arriba"> Escritorio </a> --> <?php echo $this->Html->link('Bureau',
                  array('controller' => 'escritorios', 'action' => 'index'),
                  array('class' => "menu_arriba",'target' => "_self" ));?> |
     <!-- <a href="banio.html" target="_self" class="menu_arriba"> Ba&ntilde;o </a> --> <?php echo $this->Html->link('Salle de Bain',
                  array('controller' => 'banos', 'action' => 'index'),
                  array('class' => "menu_arriba",'target' => "_self" ));?>| 
     <!--  <a href="exclusividades.html" target="_self" class="menu_arriba"> Exclusividades </a>--> <?php echo $this->Html->link('Exclusivités',
                  array('controller' => 'exclusividades', 'action' => 'index'),
                  array('class' => "menu_arriba",'target' => "_self" ));?> |   
     <!-- <a href="quienes_somos.html" target="_self">Quienes somos</a>  --><?php echo $this->Html->link('Qui sommes nous',
                  array('controller' => 'quienessomos', 'action' => 'index'),
                  array('class' => "menu_arriba",'target' => "_self" ));?> | 
     <!-- <a href="contacto.html" target="_self" class="menu_arriba"> Cont&aacute;ctenos</a> --><?php echo $this->Html->link('Contactez-nous',
                  array('controller' => 'contactos', 'action' => 'index'),
                  array('class' => "menu_arriba",'target' => "_self" ));?>
     </td>		
  </tr>
</table>
      <table width="934" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo $this->webroot; ?>img/cleo_design_foot.jpg" width="934" height="30" /></td>
        </tr>
    </table></td>
    <td width="30"   valign="top"><table width="30" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30" height="661" background="<?php echo $this->webroot; ?>img/sombra_der_arriba.jpg">&nbsp;</td>
      </tr>
      <tr>
        <td height="10" background="<?php echo $this->webroot; ?>img/sombra_der_medio.jpg">&nbsp;</td>
      </tr>
      <tr>
        <td height="360" background="<?php echo $this->webroot; ?>img/sombra_der_abajo.jpg">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>

<map name="Map" id="Map"><area shape="rect" coords="23,2,64,41" href="http://www.facebook.com/pages/Cleo-Design/129177397097577" target="_blank" />
<area shape="rect" coords="71,3,114,39" href="http://twitter.com/#!/CleoDesign" target="_blank" />
</map></body>
</html>
